package com.wu.server.Thread;

import com.wu.server.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


/**
 * @author Wugs
 * @version 1.0
 * @date 2021/3/4 22:40
 */
@Component
public class MainThread{
    @Autowired
    GoodsPrinceSalesServer goodsPrinceSalesServer;
    @Autowired
    GoodsTagServer goodsTagServer;
    @Autowired
    GoodsTopServer goodsTopServer;
    @Autowired
    SelfPercentageServer selfPercentageServer;
    @Autowired
    ShopTopServer shopTopServer;
    @Autowired
    TypeTopServer typeTopServer;

    /**
     * 外部调用线程方法开关
     */
    public void run(){
        goodsPrinceSalesServer.execute();
        goodsTagServer.execute();
        goodsTopServer.execute();
        typeTopServer.execute();
        selfPercentageServer.execute();
        shopTopServer.execute();
    }

}
